Repository navigation
feat(spec)!: a declared-gated action on an AI door is confirmed by a person through MCP elicitation - #33725
Conversation
…person through MCP elicitation The action-confirmation contract is amended: for an action declaring ai.requiresConfirmation: true, invoked through the MCP run_action or resume_run tool, the server elicits the person's confirmation from a client that advertised elicitation at initialize. A client without it is refused, the caller's own confirm member never counts, and an AI service account is refused as before. Each elicitation answer and its refusal reason is stated. Contract only: the doors implement it in the next change. Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue Co-Authored-By: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 30 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 6 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 172 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin dbef6af8a72d06ba49d2b207e49db34eab8308e0 && git checkout dbef6af8a72d06ba49d2b207e49db34eab8308e0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a557fa386bc3119379b1525bade763d00578396d c126efd64cfbedd2a534d2e91a045feba00cc695 && git checkout -B drift-repro a557fa386bc3119379b1525bade763d00578396d && git merge --no-ff c126efd64cfbedd2a534d2e91a045feba00cc695
node scripts/docs-audit/affected-docs.mjs --json a557fa386bc3119379b1525bade763d00578396d
|
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag Contract reviewServed-tier: Inputs read: card #33689 (body, including its Check-runs on the head, read 2026-11-15T08:14Z: 18 success, 10 skipped, 16 still in progress, 0 failed. Success includes Check Changeset, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Type Check · source gates, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate. Still running: Test Core 1/8 to 8/8, Build Core, Build UI Deps, Type Check · workspace / consumer gates / debt ledger, Lint · CI, release & engine gates, Lint · scoped · query-options erasure, Live E2E UI. The gate families that judge the pin test, the generated baselines and the registry generation had therefore NOT answered when this record was written. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentF1, must-fix. The contract publishes the pre-amendment rule; the card now rules the opposite for a client without F2, should-fix. Rule 2 and the closing paragraph cannot both hold against the live sequence. ( F3, should-fix. The HTTP sentence describes a window the same section says does not exist, and it pre-decides open question 3. ("When it binds", last paragraph: the stateless Streamable HTTP door "as built ... holds neither, and by rule 3 it refuses until the implementing change gives it both".) F4, should-fix. The semantic entry tells a consumer to do, now, what breaks them in the release that carries it. ( F5, nit. The trust bound is no longer stated. The member contract was candid ("an unverifiable claim", "did not prove a person"). The amended text says the server "asks the person, through the client" and "An agent cannot answer for the person by sending it". Both are true of the member. But an elicitation answer proves that the client answered, not that a person did: a caller's own client can advertise F6, nit. Which doors set F7, nit. The What holds and needs no change: the description of the member contract as the FROM half; the predicate (the DECLARED flag); the service-account rule and its ADR-0151 D3 rule 3 citation, which match Pin test ( Implemented-by: VERDICT: FAIL |
…ll to the app before any refusal A client that cannot be elicited is handed to the host's optional pending-confirmation service (IActionConfirmationService) and answered with a pending id; only a host without the service refuses. The person is asked after every admission gate, a confirmation-refused call may have read its subject, the reason set and pins follow the amended rule, and the semantic entry and changeset speak of the doors' switch conditionally. Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue Co-Authored-By: Claude <noreply@anthropic.com>
…baselines Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag Contract reviewServed-tier: Delta review, round 2. Round 1 was FAIL on Inputs read: card #33689 (body with its Check-runs on the head, read 2026-11-15T09:24Z: 71 runs, 0 failed, 0 in progress; every run is success or skipped. Success includes Check Changeset and PR-body guards (both also re-run green after the PR body was rewritten at 09:20Z), Governed Surface Queue Guard, Spec property liveness, Test Core 1/8 to 8/8, Build Core, Type Check · source gates / workspace / consumer gates / debt ledger, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate. The families that judge the pin test, the generated baselines and the registry generation have answered, which they had not in round 1. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentRound-1 findings at this head:
New findings on round-2 text: N1, should-fix. The hand-off seam cannot carry a N2, should-fix. "AI identity" as defined does not make the contract's own trust claim true for an API-key caller. ( N3, nit. The seam has no name a door and a host can agree on. Step 3 turns on "the host has no pending-confirmation service", and nothing says how a door finds one. The file argues for one exported constant wherever two sides must agree on a spelling, and N4, nit. Who may approve is implied, not stated. Step 2 notifies "the person" the caller acts for; the answer case says the action "runs as the person who approved it". Whether anyone else who can see the item may approve it, and so run it under their own permissions, is left to the host. One sentence, or the implementing card. Also left to the host and worth a line there: when a pending item lapses, and how the caller learns the outcome. What holds and needs no change: the three steps and their order against the card; the elicited answer cases; "the caller's Pin test ( Semantic entry ( Grading: no must-fix. N1 and N2 are should-fix on a Implemented-by: VERDICT: FAIL |
…es its service slot, and takes a person's signed-in session to decide Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
…baselines Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag Contract reviewServed-tier: Delta review, round 3. Round 1 was FAIL on Inputs read: card #33689 (body with its Check-runs on the head, read 2026-11-15T10:32Z: 71 runs, 0 failed, 0 in progress; 58 success, 13 skipped. Success includes Check Changeset and PR-body guards (both re-run green at 10:30Z and 10:31Z after the PR body was rewritten), Governed Surface Queue Guard, Spec property liveness, Test Core 1/8 to 8/8, Build Core, Type Check · source gates / workspace / consumer gates / debt ledger, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentRound-2 findings and the round-3 ruling, at this head:
F1 to F7, re-confirmed: the round delta touches rule 3 steps 2 and 3, the handed-off cases of rule 4, the second paragraph of "What an answer proves", the New text of round 3, judged against the card and the code:
New findings: R1, nit. The run leg does not say which screen its values answer. ( R2, nit. What holds and needs no change: everything listed as holding in record 6892320399, plus the four round-3 fixes above. Pin test, against the contract: agrees with the head sentence by sentence, pins no door behaviour and says so. Semantic entry, against the contract: unchanged and still in agreement; it is conditional throughout and makes no claim round 3 touched. Grading: no must-fix, no should-fix. R1 and R2 are nits with a named carrier; nits alone end the round. Implemented-by: VERDICT: PASS |
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag ACCEPT · PR #33725 (#33689, PR 1 of 2) · head
|
…pgrading row (objectstack-ai#33823) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XMKjdYGd1ASsfeFTXYf2bZ4)_ Fixes objectstack-ai#33798 Clause-②: no Metadata-protocol: none ## 维护者速读 - **改了什么**:新增 18.5.0 发布说明页 `content/docs/releases/v18/18-5.mdx`(沿用 18-4 的骨架,五段按「读者要做什么」分组),在 `meta.json` 中排在 18-4 之前;按维护者追加的要求把 `v18/index.mdx` 重写为 v18 产品线总览(不再写成 18.0.0 GA 页,`next` 改述为 `0.0.0-next-时间戳` 快照,数据库仪式只留链接到 18-0),并加上 18.5.0 条目;升级页「Per-release specifics」表加 v18.5.0 行;`handwritten-docs.json` 由生成器补一行。 - **为什么改**:维护者要求在 18.5.0 发版前写好发布说明(「18.5的版本发布说明可以开始安排写了」),并指出 v18 总说明写得不对(「我记得v18总的版本说明写的也不对」)。 - **风险与回滚**:只改文档,不发布任何包;回滚即 revert 本 PR。页面全部数字取自 Version Packages PR objectstack-ai#33097 头 `25559f43` 的 CHANGELOG 与 `npm view`,分类用发布脚本自己的 `classifyReleaseBullet`。页面是公开的,不写任何客户、下游项目或席位。 - **先看**:① `18-5.mdx` 的「需手动处理」节(45 条,每条写明变化和处理办法);② 同页「自动迁移」表(22 条全是 semantic 条目,`os migrate meta` 只列出、不改写,页面如实说明);③ 重写后的 `v18/index.mdx`。 - **两分钟验证**:`git fetch origin changeset-release/main && git show 25559f4 --diff-filter=D --name-only --format= | grep -c '^.changeset/'` 应输出 `283`;再加上 `main` 在 `b76df9a6` 之后新落地的 1 个 changeset(`1e65a389`,objectstack-ai#33725),共 `284`,与页面「Changesets consumed」一致。 - **需要你做的**:无,席位落地。版本 PR 合并前若再有 changeset 落地,由席位派发刷新。 ## What changes - **`content/docs/releases/v18/18-5.mdx`** (new): the 18.5.0 page in 18-4.mdx's skeleton. A compile callout; a release-status blockquote that says 18.5.0 is not yet published; Highlights; Release facts, as measured (before the cut); What's new by kind: 需手动处理 (45, each line saying what now answers differently and what to do, with its commit and pull request), 自动迁移 (21, a table with what to do and the ADR-0087 id), 新增能力 (70, by area), 语义变化 (1), 其他修复 (146, counted by area, with the fixes that bear on an upgrade grouped by capability); Console (Studio); an Upgrade checklist for an 18.4.0 app, compiled and not walked. - **`content/docs/releases/v18/index.mdx`**: rewritten as the v18 line overview, as the maintainer asked on the card (triage record 6893347748). The status blockquote now says 18.4.0 is the newest release and 18.5.0 is next; a table lists every 18.x release with its npm date and page; "Coming from 17.x" links the organization-ownership ceremony down to the 18.0.0 page and the upgrading guide instead of repeating it; "How a breaking stage lands on this line" (anchor kept: three pages link it) describes the level rule, protocol 18 and the two npm channels as they are now (`next` is a `0.0.0-next-YYYYMMDDHHMMSS` snapshot of `main`, ADR-0125 amendments of 2026-11-05/06); the per-release list gains the 18.5.0 entry. - **`content/docs/releases/v18/meta.json`**: `18-5` ahead of `18-4`. - **`content/docs/upgrading.mdx`**: the v18.5.0 row of "Per-release specifics", and nothing else. - **`scripts/docs-audit/handwritten-docs.json`**: +1 line, written by `node scripts/docs-audit/check-audit-scope.mjs --write` (the generator objectstack-ai#33137 used). No CHANGELOG is edited, no other release page is touched, and no tag, publish, `version` script or release-workflow act was taken. ## Why The maintainer asked for the 18.5.0 notes ahead of the cut, and on the card added that the v18 overview page was wrong: it still read as the 18.0.0 GA page and described pre mode and `18.0.0-next.N` as current. ## How the page was compiled - Source: Version Packages PR objectstack-ai#33097 at head `25559f43` (one commit; its parent `b76df9a6` is `main` at the start of this work, so the PR covers every changeset on `main`). The 122 CHANGELOG sections it writes were read with `getChangelogEntry` and split with `splitChangelogEntry`; `Updated dependencies` bullets and two dependency-list fragments dropped; deduplicated on full text: 283 entries, equal to the 283 changesets the commit deletes. Refreshed at head `1e5ae1d459` (addendum 6893969023): `main` at `1e65a389` carries one more changeset, `.changeset/33689-ai-action-confirmation-elicited.md` (objectstack-ai#33725), read from its file the same way, so the page holds 284. - Each entry placed with `classifyReleaseBullet`: 45 / 22 / 70 / 1 / 146. Levels: 39 `minor`, 245 `patch`. Breaking: 67 (24 `minor`, 43 `patch`); 62 commits since 18.4.0 carry `!`. - Every breaking line was written from its changeset's BREAKING / "What to do" / "The fix" paragraph; the 22 registered entries (23 registry ids) were checked to exist as `packages/spec/src/migrations/entries/semantic/18.*.ts` files, all semantic entries (no conversion). - The new-capability lines are the changesets' summaries with the conventional prefix removed; two are shortened or put in plain words (`534e115`, `ba32e79`). - Areas are placed mechanically from summary scope and packages, as the callout says. The breaking walk (all 61 `!` commits of `@objectstack/cli@18.4.0..b76df9a`, each mapped to its changeset and section, plus the five breaking changesets from commits without `!`, and the card's candidate list kept/dropped with reasons) is in the project file `pm-orders/devx/33798-breaking-ledger.md`. Summary: all 61 kept; candidates dropped: objectstack-ai#33268 (only the ADR text landed, no implementation on `main`), the hook refusal catalogue (objectstack-ai#33214 → `53f5a4c` is additive, listed under 新增能力), dataset metrics for the ask agent and model-picker multipliers (not landed), the SQL-first rule (an AGENTS.md rule, no changeset). ## Verification Local gates derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` against this diff at `a8ae5b50af`: **61 derived, 61 run, 0 NOT-MEASURED, 0 UNRUN** (`--ran` reconciliation exit 0). `--tier`: no path-derived mandate; 906 changed lines, under the 3,000 threshold. <details><summary>Gate record</summary> - Prerequisites: `pnpm --filter "@objectstack/lint..." build` and `pnpm --filter "@objectstack/client-react..." build`, both under `os-verify-lock.sh`, VERDICT exit 0. - First pass: 60 of 61 exit 0; `check:skill-examples` exit 3 (PREREQUISITE NOT MET: `client-react` had no `.d.ts`). After the client SDK closure build it exits 0 ("346 prose examples type-check across 3 surface(s)"). - The page-reading gates, all exit 0: `check:release-notes`, `check:release-page-status`, `check-release-section-coverage.mjs` (and `--strict`), `check:doc-anchors`, `check:doc-authoring`, `check:doc-frontmatter`, `check:docs-audit-scope`, `check-affected-docs.mjs`, `check:role-word`, `check:docs-single-h1`, `check-section-landing-index.mjs`, `check:corpus-claim-drift`, `check:closed-ceremony-text`, `check:nul-bytes`, `check-adr-links.mjs`, `check-issue-citations.mjs` / `check:issue-citations`, `check-docs-section-name.mjs`, `check-doc-route-spelling.mjs --advisory`, and the seven `@objectstack/spec` readers. - The full record is in the project file `pm-orders/devx/33798-gates-ran.txt`. </details> <details><summary>Page render check</summary> The three touched pages and 18-4.mdx (positive control) compile with `@mdx-js/mdx` 3.1.1 + `remark-gfm` 4.0.1 (the docs site's MDX compiler): `18-5.mdx` 129,315 bytes of JS, `v18/index.mdx` 20,189, `upgrading.mdx` 76,568, `18-4.mdx` 324,138. Negative control: a one-line file with an unclosed brace fails the same script. The full `next build` of the docs site was not run. </details> <details><summary>Facts measured, and where</summary> - `git show 25559f4 --diff-filter=D --name-only` → 283 changesets deleted; `ls .changeset` at `b76df9a6` → 283; at `1e65a389` → 284. - Published set at `25559f43`: 110 non-private packages, all `18.5.0` (75 `@objectstack/*`, `create-objectstack`, 34 `@object-ui/*`), the same name set as at `@objectstack/cli@18.4.0`; `@object-ui/app-shell` versions `18.4.1`, private. - `npm view @objectstack/spec dist-tags` → `latest` `18.4.0`, `next` `0.0.0-next-20261115100430`; npm `time` for 18.0.0–18.4.0 gives the index table's dates; no `18.x.y-` prerelease after 18.0.0 on npm. - `git ls-remote --tags origin 'refs/tags/@objectstack/spec@18.5*'` → none. - 334 first-parent commits `@objectstack/cli@18.4.0..b76df9a`; 61 with a `!` subject; new CLI command file `packages/cli/src/commands/migrate/audit-side-copies.ts`. - `PROTOCOL_VERSION` = `'18.0.0'` (`packages/spec/src/kernel/protocol-version.ts`). </details> ## Acceptance notes - **The 自动迁移 heading overstates this release.** `classifyReleaseBullet` puts every breaking entry with a `registered` ADR-0087 marker under 自动迁移 ("migrated for you"), but all 22 of 18.5.0's registered entries are semantic entries, which `os migrate meta` lists under "manual change(s) require your judgment" and does not convert. The page keeps the heading so it agrees with the GitHub Release body, and says plainly that nothing is rewritten. Noted, not filed: it is the release script's section name, a reading the seat may want to raise with the maintainer. - **Two widenings open with their declaration line**, so the classifier reads no declaration and files them under 其他修复 (`3eac63a`, `5604aeb`); the page names them. No narrowing opens that way in this release. - **The page is written before the cut.** Its status blockquote, the index blockquote and the index table say 18.5.0 is not yet published. After the cut the seat's refresh owes: the two blockquotes, the index table row's date, the release facts (version commit, tags, npm), any changeset that landed after `b76df9a6`, and `content/docs/releases/index.mdx`'s v18 entry status `(current series: …)`, which `check-release-section-coverage --strict` will ask for once `packages/spec/CHANGELOG.md` carries `## 18.5.0`. That root index entry still describes v18 by its 18.0.0 prerelease story too; it is outside this card's file surface. - **The order's "Fixes customers waited on" section is replaced** by notable fixes grouped by capability, per the maintainer's later word on the card (triage record 6893327884): the page names no customer, downstream project or seat. - **Read heads.** `main` at `b76df9a6` and Version PR objectstack-ai#33097 at `25559f43`. While this ran, `main` moved one commit: `1e65a389` (objectstack-ai#33725, `feat(spec)!:`, a declared-gated action on an AI door confirmed by a person through MCP elicitation, with a new protocol-18 semantic entry `action-requires-confirmation-elicited`). It is not on this page; it shares no file with this diff, and the refresh before the cut picks it up with the Version PR's next head. - No changeset: the diff publishes nothing from any released package (docs content plus a script data file), so `skip-changeset` is declared. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (no code; CI runs lint) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. (`content/docs/releases/v18/` is this card's subject: a docs-only release-notes PR, dispatched per card by the seat) - [x] 8. Title, body and comments are in English. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5oCDtzpDYo1LPg2KvR --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oCDtzpDYo1LPg2KvR)_ <!-- signed: domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… action on an AI door (objectstack-ai#33810) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X3KyFEoEw9hQnSWC2gDfEpS)_ domain:spec#1 · os-project-manager · session_01FEkQ5kZuoX9F5S7p84Dwue Fixes objectstack-ai#33689 (PR 2 of 2: the ADR-0011 and ADR-0151 amendment notes. PR 1, the contract, merged as objectstack-ai#33725, `1e65a389`.) Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只加两段 ADR 修订说明,不改任何代码、接口或决定。ADR-0011 记录:声明了 `ai.requiresConfirmation: true` 的动作,经 MCP `run_action` / `resume_run` 调用时,由人来确认(客户端支持征询就在客户端问;不支持就交给宿主的待确认服务,由调用所代表的那个人登录应用后同意或拒绝;宿主没有该服务才拒绝),调用方自己传的 `confirm: true` 不再算数。ADR-0151 记录:AI 服务账号的规则 3 不变,照旧拒绝,不征询也不交出;待确认服务不是规则 3 等待的那扇「转交给人」的门(那仍是 O6)。 - 为什么改:objectstack-ai#33725 已把这条契约合进 `@objectstack/spec`,卡片要求同步修订这两份 ADR。 - 风险与回滚:纯文档。两段说明都写明「实现变更发布前,门禁仍读 `confirm: true`」。回滚即还原本 PR。 - 先看:`docs/adr/0011-actions-as-ai-tools.md` 的 Confirmation 表格下方的修订说明;`docs/adr/0151-…md` D3 末尾的修订说明;两份文件头部各加一行 Amended。 - 需要你做的:这是 Tier H(`docs/adr/**`),需要你审批合并。应用内助手这扇门按你的裁定「B 同一规则,两套流程暂留」写入 ADR-0011 说明:同一规则适用于所有 AI 入口,应用内确认卡和 `IAIService` 待批成员保留;契约改动走 objectstack-ai#33808,cloud 路由对齐走 objectstack-ai#33809,两套接缝合并是 objectstack-ai#33806。 ## What changes Docs only: two dated amendment notes and one header line in each ADR. No decision of either ADR is reversed, and no status line changes. - **`docs/adr/0011-actions-as-ai-tools.md`**: a header `**Amended**` line, and an amendment note under the "Confirmation (HITL approval queue)" heading. It cites the merged contract by symbol (`packages/spec/src/contracts/ai-service.ts#AI_ACTION_CONFIRMATION_CAPABILITY`, `#IActionConfirmationService`, `#ACTION_CONFIRMATION_SERVICE`). The note covers: - **Why:** measured 2 of 6 self-confirmed runs on 18.4.0. - **Which calls:** the declared flag, through MCP `run_action`, or `resume_run` for its candidate action, by any caller acting for a person. - **The three steps:** elicit; otherwise hand off, where only the person the call ran as decides, an approval runs as them with every gate re-checked, a `resume_run` resumes its parked run, and the approve and reject doors take a signed-in session only; refuse with `no_confirmation_service` only when no service is registered. - **`confirm`:** the caller's `confirm` never counts. - **What an answer proves:** neither answer proves a human. - **Bounds:** the MCP delete tools keep the member, and REST `/actions` stays outside the gate for a person. - **The in-app assistant door, as ruled (Ruling-ref: Leehom 2026-11-15T11:10:57Z, 「B 同一规则,两套流程暂留」, record 6893484458):** the core rules bind every AI door, the in-app assistant included. Neither the caller's nor the model's own confirmation counts, only the person the call ran as decides, the deciding doors take a signed-in session only, and the approved action runs as that person, re-checked. The in-app door keeps its own channel (the pending-approval card and inbox), and `IAIService`'s pending members stay. The note points to the follow-ups: the in-app door's three changes (who decides, which credential, as whom it runs) land through objectstack-ai#33808, the cloud route alignment is objectstack-ai#33809, and the seam merge is objectstack-ai#33806. - **When it binds:** until the implementing change ships, `#actionConfirmationRefusal` gates on `confirm: true`, and the addendum's sentence stays the description of running code. - **What stays unchanged:** the opt-in, the H/C/E buckets with "never relaxed" (what changes is who confirms), and ADR-0151 D3 rule 3. - **`docs/adr/0151-…-of-its-own.md`**: a header `**Amended**` line, and an amendment note after D3. It covers: - **Rule 3 is unchanged:** an account is refused whatever it sends, neither elicited nor handed off. - **The new reason:** from the implementing change the refusal carries `details.reason: 'service_account'` on every door that runs an action. - **Not the hold door:** the pending-confirmation service is not the hold door rule 3 waits on. It hands a person's call back to that person, and its doors refuse an agent principal. O6 stays a separate decision. - **OAuth agents:** an OAuth agent acting for a person is not an account. - **Until the switch:** the gate is `#actionConfirmationRefusal` / `#isAiServiceAccountCaller` as before. ## Why Card objectstack-ai#33689's "Change" amends ADR-0011 and ADR-0151 alongside the contract. Under its order the notes ship as their own Tier H PR after the contract (PR 1) merged. ## Verification Head `ab50848a`, from `origin/main` at `1e65a389`. <details><summary>Derived gates: 21 derived, 21 exit 0, 0 NOT-MEASURED</summary> ```text node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (21 commands; each run with timeout 900, exit captured before any pipe) 21 of 21 :: exit 0 (check:adr-symbol-anchors: 3621 anchors across 156 records resolve; check-adr-links: 1131 destinations resolve; check:adr-anchors, check:adr-index, check:doc-authoring, check:pm-governed-merges included) dispatch-gates --ran :: exit 0 — 21 derived, 21 run, 0 NOT-MEASURED Changed lines: 70 (+70 / -0), under the human-merge threshold ``` </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (no names added) - [x] 3. No formatter ran; `pnpm lint` passes. (docs only; the derived lint-family gates ran green) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing; no changeset) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the maintainer quick-read section is in Chinese by the project's convention) --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue)_ <!-- signed: domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…LOG line, and an 18-5 page erratum (objectstack-ai#34042) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9EaC9kmPYBDw3v97tMkTaQu)_ Fixes objectstack-ai#33903 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:18.5.0 已发布但发布说明漏记的 11 条变更,补进 14 个包的 CHANGELOG 18.5.0 节(私有包 app-shell 补在它这次发的 18.4.1 节),删掉这 11 个 changeset 文件,并在 18-5 发布页加一节勘误。 - 为什么改:18.5.0 的版本提交 `b914e724` 没有消化这 11 个 changeset,代码已随 18.5.0 发出,但 CHANGELOG 和发布页都没写;其中 objectstack-ai#33637 是破坏性变化(`os audit verify` 遇到被两个 checkpoint 同时列出的行,现在报 `listed_twice` 并失败)。按裁决 6896138728「事后补就可以」只做补记。 - 风险与回滚:纯文字,不发布代码;删掉的 changeset 若留着,下一个版本会把它们当新变化再发一遍。回滚即 revert 本 PR。 - 先看:`content/docs/releases/v18/18-5.mdx` 的勘误节;`packages/plugins/plugin-audit/CHANGELOG.md`(破坏性那条);`packages/spec/CHANGELOG.md`(两条,其中一条进 Minor Changes)。 - 两分钟验证:`git grep -c -E '^- (ac0b9a5|2e1e3b9|fbe349f|2673f59|0feb5ff|1e65a38|e302d32|f8f35db|e0775f7|4b5024d|81371e1): ' -- '*CHANGELOG.md'` 预期 14 个文件共 18 行;`ls .changeset/*.md | wc -l` 比 main 少 11。 - 需要你做的:无,席位落地(Check Changeset 会按规则保持红色,见下方 DELIBERATE CORRECTION)。 ## What changes `packages/*/CHANGELOG.md` and `content/docs/releases/` are release-owned. AGENTS.md (Documentation Guardrails) routes a factual error in a released entry, or on a releases page, to a dedicated docs-only PR, and the maintainer's ruling on this card (comment 6896138728, verbatim: 「没必要,事后补就可以:让发布流程在版本提交之前还有没消化的 changeset 时,拒绝发正式版。」) keeps only the amendment half. This is that PR. Precedent: objectstack-ai#33925. The 18.5.0 version commit `b914e724` (objectstack-ai#33097) consumed 283 of the 294 changesets on its parent. The other 11 landed on `main` after the Version Packages branch point `b76df9a6` and before the merge; each one's adding commit is an ancestor of `b914e724`, and its file is byte-identical on `b914e724` and on this branch's base `bc6b7ffd`. 1. **CHANGELOG entries.** Each changeset's entry is added to the release section `b914e724` wrote for each package it names, in the stock generator's form (`- SHA7: ` + the summary, continuation lines indented two spaces), under the commit that added the changeset, in the `### Minor Changes` or `### Patch Changes` list its bump names, after the last changeset entry and before the `Updated dependencies` lines. No dependents line is invented. 2. **The 11 changeset files are deleted**, so the next version commit does not present them as new. 3. **The 18-5 page** gains `## Erratum — eleven changes 18.5.0 shipped with no CHANGELOG line [#erratum]`: objectstack-ai#33637's FROM → TO and what an operator does, one line for each of the other nine, and a pointer from the release-facts row that said 284 were consumed. objectstack-ai#33725 is already on the page (自动迁移, "Announced, not yet at any door"); it is checked, not repeated. | Changeset | Package | Added to | Commit | 18-5 page | | :--- | :--- | :--- | :--- | :--- | | `31908-p4b2-bounded-checkpoints` | `@objectstack/plugin-audit` | `## 18.5.0` › Patch Changes | `ac0b9a5` (objectstack-ai#33637) | Erratum, breaking: FROM → TO, what to do, rollback note | | `33186-managed-add-people-actions` | `@objectstack/platform-objects` | `## 18.5.0` › Patch Changes | `2e1e3b9` (objectstack-ai#33755) | Erratum, one line | | `33609-related-list-parent-lookup-page` | `@object-ui/console`, `@object-ui/plugin-detail` | `## 18.5.0` › Patch Changes | `fbe349f` (objectstack-ai#33780) | Erratum, one line | | `33649-messaging-preferences-emitting-organization` | `@objectstack/service-messaging` | `## 18.5.0` › Patch Changes | `2673f59` (objectstack-ai#33779) | Erratum, one line | | `33660-ai-model-picker-cost-multiplier` | `@objectstack/spec`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`, `@object-ui/console`; `@object-ui/app-shell` | `## 18.5.0` › Patch Changes; app-shell `## 18.4.1` › Patch Changes | `0feb5ff` (objectstack-ai#33746) | Erratum, one line | | `33689-ai-action-confirmation-elicited` | `@objectstack/spec` | `## 18.5.0` › Minor Changes | `1e65a38` (objectstack-ai#33725) | Already covered (自动迁移 row), not repeated | | `33724-install-relaxes-declared-not-null` | `@objectstack/driver-sql`, `@objectstack/cloud-connection`, `@objectstack/driver-turso` | `## 18.5.0` › Patch Changes | `e302d32` (objectstack-ai#33769) | Erratum, one line | | `33739-scenario-runner-effort` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `f8f35db` (objectstack-ai#33767) | Erratum, one line | | `33753-scenario-dates-follow-run-date` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `e0775f7` (objectstack-ai#33776) | Erratum, one line | | `33754-scenario-grader-written-date` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `4b5024d` (objectstack-ai#33797) | Erratum, one line | | `a2-skills-docs-32678-32825` | `@objectstack/skills` | `## 18.5.0` › Patch Changes | `81371e1` (objectstack-ai#33355) | Erratum, one line | **DELIBERATE CORRECTION.** This PR adds no changeset and deletes eleven (`git diff --name-status` over `.changeset/*.md`: 11 × `D`, 0 × `A`). Each deleted note is already released: its text now stands, unchanged, as the entry named in the table above, in the 18.5.0 tarballs' release section. Under ruling D on objectstack-ai#18375 (the Check Changeset step's route 0) and `.claude/agents/os-dev.md`, `skip-changeset` is not applied to a PR that deletes an existing changeset, so `Check Changeset` stays red by design; it is not a required context. The diff publishes nothing until the next release republishes the tarballs. ## Tests No source changes, so no test suite moves. The CHANGELOG lines are generated, not hand-typed: the summary parse and the stock release-line format were re-implemented in a script and first checked against `b914e724^`: for every changeset `b914e724` consumed among the first 60 (103 package entries), the generated text is found verbatim in that package's CHANGELOG; the only miss is `31908-p4b2-bounded-checkpoints`, the unconsumed one this PR adds. The script asserts, per changeset, one adding commit, an identical blob at the tag and at the base, the release section being the top section of the version `b914e724` gave the package, and the entry not already present. The diff of every CHANGELOG is insertions only. ## Acceptance notes 1. `@object-ui/app-shell` is private and `b914e724` versioned it `18.4.1`, not `18.5.0` (the 18-5 page's release facts say so too), so its entry goes into its `## 18.4.1` section. 2. The 18-5 page still opens with "Release status: 18.4.0 is released, and 18.5.0 is not yet." and its release facts say no 18.5.0 tag or npm version exists. Both are stale since the publish. Outside this card's file surface; left for the seat (noted, not filed). 3. The changeset of objectstack-ai#33649 has no summary line, so its entry opens `- 2673f59: Clause-②: no`, as the stock generator would have written it. ## Verification <details><summary>Premise readings, at base bc6b7ff and the 18.5.0 spec tag = b914e72</summary> - `git ls-tree --name-only b914e72 .changeset/` minus `README.md` and `config.json`: 11 files, the card's list. `b914e724^` holds 294; `b914e724` deletes 283. - For each of the 11: `git rev-parse b914e72:PATH` equals `git rev-parse bc6b7ff:PATH`; the adding commit (`git log --diff-filter=A`, one per file) is an ancestor of `b914e724` (`merge-base --is-ancestor` exit 0, after deepening the shallow clone by 800 commits). The adding commits all fall between `b76df9a6` (the Version Packages branch point the 18-5 page names) and `b914e724`. - Before this PR: `listed_twice`, `ac0b9a5`, `objectstack-ai#33637` each 0 hits on `content/docs/releases/v18/18-5.mdx`. - The erratum's wording is read from the changeset text and `packages/plugins/plugin-audit/src/audit-seal/verifier.ts` (`listed_twice` fault: `checkpoint N: lists row(s) … that another checkpoint already lists`), `content/docs/deployment/cli.mdx` § `os audit verify` (exit 1 when two checkpoints list the same row), and the 18.5.0 entry `f4cafd5` (a late checkpoint leaves out every row a checkpoint stored in between already lists). </details> <details><summary>Gates</summary> Head `f5754612`. Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (no paths): 99 commands, each run with stdin from `/dev/null` and its exit captured before any pipe; `--ran` reconciliation: 99 derived, 99 run, 0 NOT-MEASURED, 0 UNRUN. - 98 exit 0. Eleven of them first exited 3 (PREREQUISITE NOT MET, no `dist/` in a fresh worktree) and were re-run exit 0 after the builds they name, each under `scripts/pm/os-verify-lock.sh` with VERDICT command-exit 0: the `@objectstack/lint...` closure plus the `check:i18n` extract closure (64/64 tasks), `@objectstack/client` and `client-react` (43/43), then `pnpm build` (119/119). Re-run: `check:doc-formula-expressions`, `check:doc-security-posture`, spec `check:docs`, spec `check:skill-examples`, `check:docs-transcript-drift`, `check:i18n`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`; and `pnpm --dir ui exec vitest run scripts/`, which first failed 22 files only on the missing `@objectstack/spec` `dist/` and then passed (171 files passed, 2 skipped; 5,065 tests passed). - 1 exit 1, by design: `node scripts/check-empty-changeset.mjs --base origin/main` refuses the eleven deletions as edits of existing notes (one `::error` per file). This is the DELIBERATE CORRECTION class declared above; it stays red, and so does `Check Changeset`. - Release-text gates all exit 0 on the amended tree: `check-release-section-coverage` (plain and `--strict`), `check:release-notes`, `check:release-page-status`, `check-affected-docs`, `check:doc-authoring`, `check:doc-anchors`, `check:nul-bytes`, `check-adr-0087-registration --base origin/main`. `origin/main` moved to `159757ab` while the gates ran; the commits since the base `bc6b7ffd` touch none of this PR's paths (they add four other changesets), so no merge was taken. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR <!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
domain:spec#1 · os-project-manager · session_01FEkQ5kZuoX9F5S7p84Dwue
Part of #33689 (PR 1 of 2: the spec contract; the ADR-0011 / ADR-0151 amendment notes follow as PR 2 once this merges)
Clause-②: yes (narrowing)
Metadata-protocol: semantic
Skills-docs: follow-up —
skills/objectstack-ai/SKILL.md(the MCP tool table rows forrun_action/resume_run) teachesconfirm: true, which is still the door's behaviour in this release; it moves with the change that implements the doors, withpackages/mcp/src/skill-md.ts,ui/apps/console/src/pages/developer/objectstack-skill.tsand theToolSchemaprescription inpackages/spec/src/ai/tool.zod.ts.维护者速读
@objectstack/spec/contracts)。对声明了ai.requiresConfirmation: true的动作,经 MCPrun_action/resume_run调用时按三步确认:客户端支持「征询」(elicitation)就在客户端里问用户;不支持就交给宿主的「待确认服务」,回一个待确认 id,用户在应用里(收件箱 + 邮件链接)同意或拒绝,同意后以用户本人身份、重新检查权限后执行(resume_run交出时带上运行 id 和字段值,同意即恢复那次暂停的运行,不另起新运行);宿主在ACTION_CONFIRMATION_SERVICE('ai.actionConfirmation')下没有注册这个服务才拒绝。只有调用所代表的那个人能同意或拒绝;同意/拒绝入口只接受此人在应用里登录的会话,AI 身份、API key、令牌一律拒绝。待确认项何时过期、调用方如何得知结果由宿主自定。调用方自己传的confirm: true不再算数,AI 服务账号照旧拒绝。confirm: true放行的。维护者已裁「3826 照建议(征询版)」,并在卡上追加「推送到客户的手机端」「先推送到邮件」。confirm: true;迁移条目和变更说明都写明「实现变更发布后」才生效。回滚即还原本 PR。packages/spec/src/contracts/ai-service.tsL419–L579 的契约文档块(第 3、4 条与「What an answer proves」);同文件ActionConfirmationHandOff.run(L615)、ACTION_CONFIRMATION_SERVICE(L666)和IActionConfirmationService(L690);.changeset/33689-ai-action-confirmation-elicited.md的 FROM → TO。pnpm --filter @objectstack/spec exec vitest run src/contracts/action-confirmation-contract.pin.test.ts,预期 13 条全绿。What changes
All in
packages/spec; no runtime, MCP or UI file is touched.contracts/ai-service.tsL419–L579, onAI_ACTION_CONFIRMATION_CAPABILITY = 'elicitation'. For a call on an action declaringai.requiresConfirmation: truethrough the MCPrun_actiontool orresume_run(its candidate action), by any caller acting for a person:elicitationatinitializefor the session and the door can carry a request to it (oneelicitation/create, form mode, naming the action, object and record id, with its title when the subject load read one). Otherwise hand off to the host's pending-confirmation service, registered underACTION_CONFIRMATION_SERVICE('ai.actionConfirmation'), and answerActionConfirmationPending(status: 'pending_confirmation', a pending id, a plain message). Only the person the call ran as (itsuserId, the person an agent acts for) decides the item; when it lapses and how the caller learns its outcome are the host's to define. Refuse only when the host registers no service under that name (no_confirmation_service). A door or client that cannot elicit is never refused for that alone.acceptruns once under the caller's permissions, nothing stored;decline/cancel(error answer, dropped connection) / timed out refuse withdeclined/cancelled/timed_out. Handed off then approved in the app: runs as the approving person through the same admitted sequence, every gate and permission re-checked, a refusal there recorded on the pending item; rejected: nothing runs. A handed-offresume_runcarries its run (ActionConfirmationHandOff.run:runIdandvalues); approving it resumes THAT parked run as the approver, who must be the run's owner as today, and never starts a new run. The approve and reject doors take a person's signed-in session to the app and nothing else: they refuse an AI identity (an agent principal, with or withoutonBehalfOf, and any call through an AI door) and an API key, a delegated or OAuth token or any other service credential, whoever it resolves to.confirmnever counts. An AI service account is refused unchanged (ADR-0151 D3 rule 3),reason: 'service_account'on every door, since the one admitted sequence asks that rule at REST/actionsand host doors too; it is neither elicited nor handed off.acceptproves the client answered, not that a person did; an approved hand-off proves a signed-in session to the app answered, not that a person did. Neither proves a human; each is as strong as what it takes to give it./actionsstays outside the gate for a person.run_action/resume_runrun a gated action onconfirm: trueover stdio and Streamable HTTP alike. Measured: stdio can elicit; the stateless HTTP door as built cannot, so under step 2 its callers are handed off. Whether and how that door comes to elicit is the implementing change's decision.ACTION_CONFIRMATION_REFUSAL_REASONS(closed:declined,cancelled,timed_out,no_confirmation_service,service_account; a hand-off is not a refusal),ActionConfirmationRefusalReason, the optionalActionConfirmationRequiredDetails.reason, and the hand-off seam:ActionConfirmationHandOff,ActionConfirmationPending, the OPTIONAL host serviceIActionConfirmationService(submit(handOff, context) → { pendingId }) and its service slotACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation', followingAUDIT_CHECKPOINT_SINK_SERVICEincontracts/audit-checkpoint.ts(noCoreServiceNamechange).ActionConfirmationHandOffgains the optionalrun: { runId; values }, present exactly for aresume_runcall. The seam names no cloud store; it points toheldonIAIService.approvePendingActionas the existing precedent.AI_ACTION_CONFIRMATION_MEMBERL242,AIActionConfirmationL259,confirmationMember) say the member stops confirming from the implementing change and is the FROM half until then.18.action-requires-confirmation-elicited.ts(adr-0087: registered) leads with the timing: keep sendingconfirm: trueuntil a release's changelog says the doors switched; every instruction after that is conditional on it..changeset/33689-ai-action-confirmation-elicited.md,@objectstack/specminor, "BREAKING, when the implementing change ships", with a ⚠ line that nothing changes at any door in this release.api-surface/contracts.json,export-origins/contracts.json(seven new exports; round 3 addsACTION_CONFIRMATION_SERVICE).First-party exposure (what the implementing change will move)
ai.requiresConfirmation: true: 19 inpackages/platform-objects, 7 inplugin-approvals(sys_approval_request), 1 in HotCRMorigin/main81efb1c (convert_lead). Over MCP, once the doors switch, each is elicited or handed off.confirm: true(onrun_action,resume_runor the delete tools): test files inpackages/mcp(11),packages/runtime(6),packages/qa/dogfood(9),packages/qa/scenarios,examples/app-todo/test/mcp-actions.test.ts; HotCRM sends none.skills/objectstack-ai/SKILL.mdL202–L204,packages/mcp/src/skill-md.ts,packages/mcp/README.md,ui/apps/console/src/pages/developer/objectstack-skill.ts, theToolSchemaguidance inpackages/spec/src/ai/tool.zod.ts, the semantic entry17.tool-requires-confirmation-retired.ts. True today; they move with the doors.Tests
action-confirmation-contract.pin.test.ts, its amended-contractdescribe(7 cases; the file 13/13):'elicitation', not the member;'ai.actionConfirmation', and step 3 turns on it by name;accepted,pending_confirmationandelicitation_unsupportedare not reasons;details.reasonis typed to the set (@ts-expect-erroron'denied') and optional;status: 'pending_confirmation'(@ts-expect-erroron the chat's older'pending_approval'), aresume_runhand-off carriesrun: { runId, values }(@ts-expect-erroron a run without values), and a stubIActionConfirmationServiceresolves a pending id for both kinds;Ablations (
scripts/ablation-replace.mjs, each restored to the HEAD blob):reason typed as string, and the pending discriminant typed as string: check:test-typecheck red on the pin file both times
round 3: the run leg's values made optional (check:test-typecheck red), and the API-key refusal dropped from the prose (pin red)
Acceptance notes
service_accounton every door, and the member paragraph's tense.resume_run's run and approval resumes that run, the approver being the run's owner; N2 the approve and reject doors take only a person's signed-in session, and "What an answer proves" states the hand-off's bound as it does the elicited one; N3 the service slotACTION_CONFIRMATION_SERVICE; N4 who decides, and lapse and outcome delivery left to the host. The pin test moves sentence by sentence and its stale remedy label is fixed. The semantic entry is unchanged: the review found N1 and N2 do not reach it.Verification
Round 3, all on head
c126efd6(base6ff3eee7; round 2 wasc0ebf0c3).spec build + full suite: 841 files, 26893 passed | 1 todo
spec typecheck (with check:test-typecheck) and check:generated: exit 0
Derived gates: 88 derived (same list as round 2), 87 exit 0 in the loop, 1 lock queue-timeout re-run green
Dogfood battery on c126efd: 467 passed | 3 skipped files, 3958 passed | 42 skipped tests
Generated by Claude Code